package com.makemoney.miniprogram.common.result;

public enum ResultCode implements IErrorCode {
    SUCCESS("200", "操作成功"),
    FAILED("500", "操作失败"),
    BAD_REQUEST("400", "错误的请求"),
    UNAUTHORIZED("401", "暂未登录或token已经过期"),
    FORBIDDEN("403", "没有相关权限"),
    NOT_FOUND("404", "资源不存在"),
    A0220("A0220","用户身份校验失败"),
    A0400("A0400", "用户请求参数错误");

    private String code;
    private String message;

    private ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
